package astractfactory;

import com.tao.design.build.ManBuilder;
import com.tao.design.build.Person;
import com.tao.design.build.PersonDirector;

/**
 * @projectName: DesignMode
 * @package: astractfactory
 * @className: testForBuilder
 * @author: TT_Hugo
 * @description: 测试类
 * @date: 2022/12/26 15:24
 * @version: 1.0
 */
public class testForBuilder {
    public static void main(String[] args) {
        PersonDirector pd = new PersonDirector();
        Person person = pd.constructPerson(new ManBuilder());
        System.out.println(person.getBody());
        System.out.println(person.getFoot());
        System.out.println(person.getFinger());
        System.out.println(person.getHead());
        System.out.println(person.getClass());
    }
}
